package com.bt.lms.ui.action.teaching.plan.utils;

import java.io.IOException;
import java.net.Socket;

/**
 * 获取网络
 * @author 李舒淇
 */
public class GetNet {

    /**
     * 获取网络
     * @return  socket
     */
    public static Socket getNet() {

        String serverIp = "127.0.0.1";
        int serverPort = 8888;
        Socket socket = null;
        try {
            socket = new Socket(serverIp,serverPort);
        }catch (IOException e){
            return null;
        }
        return socket;
    }

}
